package com.beifu.manager.dao;

import com.beifu.manager.model.AssetScrap;
import com.beifu.manager.model.AssetScrapExample;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface AssetScrapMapper {
    int countByExample(AssetScrapExample example);

    int deleteByExample(AssetScrapExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(AssetScrap record);

    int insertSelective(AssetScrap record);

    List<AssetScrap> selectByExample(AssetScrapExample example);

    AssetScrap selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") AssetScrap record, @Param("example") AssetScrapExample example);

    int updateByExample(@Param("record") AssetScrap record, @Param("example") AssetScrapExample example);

    int updateByPrimaryKeySelective(AssetScrap record);

    int updateByPrimaryKey(AssetScrap record);
    
    List<AssetScrap> getAssetScrapPage(@Param("start") int start, @Param("pageNum") int pageNum,  @Param("example") AssetScrapExample example);
    /**
     * 获取相应类型数量
     * @param id
     * @return
     */
    List<Map<String, Object>> getAssetTypeNum(Integer id);
}